package com.ljx.rpc.server.service;

import com.ljx.rpc.client.domain.HelloDto;
import com.ljx.rpc.client.service.HelloService;

public class HelloServiceImpl implements HelloService {

    @Override
    public HelloDto sayMsg(HelloDto helloDto) {
        System.out.println(helloDto.getName() + "的消息：" + helloDto.getMsg());
        return new HelloDto("小B", "收到" + helloDto.getName() + "的消息：" + helloDto.getMsg());
    }
}
